//
//  RecruitmentView.m
//  CommunitySupermarketProiect
//
//  Created by 吕惠卿 on 2017/10/17.
//  Copyright © 2017年 吕惠卿. All rights reserved.
//

#import "RecruitmentView.h"

@implementation RecruitmentView
-(id)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        [self creatUI];
    }
    return self;
}
-(void)creatUI{
    
    _rightImg = [[UIImageView alloc]init];
    
    _rightImg.backgroundColor = [UIColor redColor];
    
    [self addSubview:_rightImg];
    [_rightImg mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.mas_right).with.offset(-8);
        make.height.mas_equalTo(70);
        make.width.mas_equalTo(WIDTH/3);
        make.centerY.mas_equalTo(self);
    }];
    
    UIImageView *line = [[UIImageView alloc]init];
    line.backgroundColor = LineColor;
    [self addSubview:line];
    [line mas_makeConstraints:^(MASConstraintMaker *make) {
        make.bottom.equalTo(self.mas_bottom).with.offset(0);
        make.left.equalTo(self.mas_left).with.offset(0);
        make.right.equalTo(self.mas_right).with.offset(0);
        make.height.mas_equalTo(10);
    }];
    
    _bigLab = [[UILabel alloc]init];
    _bigLab.text =@"商家入驻";
    _bigLab.font = [UIFont fontWithName:@"ArialMT"size:18];
    _bigLab.textAlignment = NSTextAlignmentLeft;
    [self addSubview:_bigLab];
    [_bigLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.mas_top).with.offset(14);
        make.left.equalTo(self.mas_left).with.offset(15);
        make.right.equalTo(_rightImg.mas_left).with.offset(-8);
        make.height.mas_equalTo(30);
    }];
    
    
    _contLab = [[UILabel alloc]init];
 
    _contLab.text =@"免费入住 提升品牌形象";
    _contLab.font = [UIFont systemFontOfSize:15.0];
    _contLab.textAlignment = NSTextAlignmentLeft;
    _contLab.textColor = [UIColor grayColor];
    [self addSubview:_contLab];
    [_contLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(_bigLab.mas_bottom).with.offset(2);
        make.left.equalTo(self.mas_left).with.offset(15);
        make.right.equalTo(_rightImg.mas_left).with.offset(-8);
        make.height.mas_equalTo(30);
    }];

}

@end
